<?php session_start(); ?>
<html>
<head>
<script language="javascript" src="javascript/ajax_login.js">/* Login Ajax Client Side */</script>
<script language="javascript" src="javascript/sha1.js">/* SHA-256 JavaScript implementation */</script>
<script language="javascript" src="javascript/utf8.js">/* UTF-8 encoding */</script>
<script language="javascript" src="javascript/cookie.js">/* Cookie Management */</script>
<script language="javascript" src="javascript/token.js">/* Token Creation */</script>
<link href="scrunch.css" rel="stylesheet" type="text/css">
</head>

<body>
<font color="white">
<center><p>Privr<br>
<font size="2">Currently working with login admin/admin or any other registered user.<br>
If there is more than one user in the DB with the same username and password pair, I am rejecting you.<br>
Token is not used yet.<br></font></font><br></center>


<form name="loginform" onsubmit="return ajax_login();">
<table border="0" cellspacing="1" cellpadding="3" width="600" align="center">
<tr>
<td align="right" width="25%"><b><font color="#ffffff">User Name:</font></b></td>
<td width="25%"><input type="text" name="username" id="user" size="20" value="" /></td>
<td align="right" width="25%"><b><font color="#ffffff">Password:</font></b></td>
<td width="25%"><input type="password" name="password" size="20" value="" /></td>
</tr>
<tr>
<td colspan="4" align="center">
<font color="white">Token: <input type=text name="token" id="token" size="40" value="" /></font>
</td>
</tr>
<tr>
<td colspan="4" align="center"><input type="button" name="a1" value="Login" onclick="call_login();"></td>
</tr>
</table>
</form>

</body>
</html>
<script language="javascript">
<!--
document.loginform.token.value = randomString();
-->
</script>